home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
CAD
/
PKEY11_1.ARJ
/
DL.LSP
< prev
next >
Wrap
Text File
|
1992-03-14
|
593b
|
20 lines
;Multiple delete layers based on selection (BE VERY VERY CAREFULL)
;Any mishaps can be undone. Merely type U at the command line and
;press return.
;
; ********Patrick J. McKee, author********
; ****Copyright 1992, Power Key tm****
;
(defun C:dl ()
(setq ss (ssget))
(setq counter 0)
(prompt "Deleting layers...")
(while
(setq e (ssname ss counter))
(setq l (cdr (assoc 8 (entget e))))
(setq S (ssget "X" (list (cons 8 l))))
(progn
(command "erase" s ""))
(setq counter (+ counter 1))
(princ l)(princ ", ")
(princ)))